import Vue from 'vue'
import Router from 'vue-router'
import index from '@/components/index/index'
import login from '@/components/index/login'
import register from '@/components/index/register'
import service from '@/components/index/service'
import handbook from '@/components/index/handbook'
import getBack from '@/components/index/getBack'
import basic from '@/components/information/basic'
import risk from '@/components/information/risk'
import resources from '@/components/information/resources'
import personset from '@/components/person/personset'
import search from '@/components/search/search'
import changepsd from '@/components/changePsd/changepsd'
import editplan from '@/components/plan/editplan'
import planmanage from '@/components/plan/planmanage'
import comAssess from '@/components/expert/comAssess'
import waitAssess from '@/components/expert/waitAssess'
import assessed from '@/components/expert/assessed'
import assessedAll from '@/components/expert/assessedAll'
import checkAssessed from '@/components/expert/checkAssessed'
import keyexam from '@/components/examine/keyexam'
import personexam from '@/components/examine/personexam'
import powerexam from '@/components/examine/powerexam'
import situationexam from '@/components/examine/situationexam'
import details from '@/components/index/detail'
// import ideaAll from '@/components/companyAssess/ideaAll'
import onlineAssess from '@/components/companyAssess/onlineAssess'
import underlineAssess from '@/components/companyAssess/underlineAssess'
// import formExpert from '@/components/companyAssess/formExpert'
import assessedAlls from '@/components/expert/assessedAlls'
import onlineAssess2 from '@/components/companyAssess2/onlineAssess'
import underlineAssess2 from '@/components/companyAssess2/underlineAssess'
import templete from '@/components/plan/templete'
import changepsd2 from '@/components/changePsd/changepsd2'
import uploadSign from '@/components/expert/uploadSign'
import estimate from '@/components/plan/estimate'
import waitAssess2 from '@/components/expert2/waitAssess'
import comAssess2 from '@/components/expert2/comAssess'
import situationexam2 from '@/components/examine2/situationexam'
import keyexam2 from '@/components/examine2/keyexam'
import powerexam2 from '@/components/examine2/powerexam'
import personexam2 from '@/components/examine2/personexam'
import checkAssessed2 from '@/components/expert2/checkAssessed'
import assessed2 from '@/components/expert2/assessed'
import tableLay from '@/components/examine2/layout'
import assessedAll2 from '@/components/expert2/assessedAll'
import assessedAlls2 from '@/components/expert2/assessedAlls'
import basic2 from '@/components/information2/basic'
import risk2 from '@/components/information2/risk'
import resources2 from '@/components/information2/resources'
import estimate2 from '@/components/plan2/estimate'
import planmanage2 from '@/components/plan2/planmanage'
import planList from '@/components/plan2/planList'//预案清单
import list from '@/components/index/list'
import listDetail from '@/components/index/listDetail'


import filingApplication1 from '@/components/guide/filingApplication1'
import filingApplication2 from '@/components/guide/filingApplication2'
import publicRecord from '@/components/guide/publicRecord'
import publicCheck from '@/components/guide/publicCheck'
import drillGuide from '@/components/drill/drillGuide'
import drillGuide1 from '@/components/drill/drillGuide1'
import drillManagement from '@/components/drill/drillManagement' //应急演练管理

import homePage from '@/components/homePage/homePage'
import monitor from '@/components/monitor'
import experience from '@/components/experience'
import knowledge  from '@/components/knowledge/index'
import discussion  from '@/components/discussion'
import regulations  from '@/components/knowledge/regulations'
import thinktanks  from '@/components/knowledge/thinktanks'
import list1 from '@/components/real-time/list1'
import newsDetail  from '@/components/real-time/newsDetail'//时事新闻详情
import newsDetail1  from '@/components/real-time/newsDetail1'//时事新闻详情
import newsDetail2  from '@/components/real-time/newsDetail2'//法规详情
import regulations1  from '@/components/knowledge/regulations1'
import list2 from '@/components/real-time/list2'

import noticInfo from '@/components/index/noticInfo' //通知详情
Vue.use(Router)


export const StaticRouterMap = [{
  path: '/',
  name: 'homePage',
  component: homePage
},
  {
    path: '/homePage',
    name: 'homePage',
    component: homePage
},
{
    path: '/login',
    name: 'login',
    component: login
}, {
    path: '/register',
    name: 'register',
    component: register
},
]

export const CompanyRouterMap = [{
    path: '/index',
    name: 'index',
    component: index
},

{
    path: '/service',
    name: 'service',
    component: service
},
{
    path: '/handbook',
    name: 'handbook',
    component: handbook
},
{
    path: '/getBack',
    name: 'getBack',
    component: getBack
},
{
    path: '/basic',
    name: 'basic',
    component: basic
},
{
    path: '/risk',
    name: 'risk',
    component: risk
},
{
    path: '/resources',
    name: 'resources',
    component: resources
},
{
    path: '/personset',
    name: 'personset',
    component: personset
},
{
    path: '/search',
    name: 'search',
    component: search
},
{
    path: '/changepsd',
    name: 'changepsd',
    component: changepsd
},
{
    path: '/editplan',
    name: 'editplan',
    component: editplan
},
{
    path: '/planmanage',
    name: 'planmanage',
    component: planmanage
},
{
    path: '/comAssess',
    name: 'comAssess',
    component: comAssess
},
{
    path: '/waitAssess',
    name: 'waitAssess',
    component: waitAssess
},
{
    path: '/assessed',
    name: 'assessed',
    component: assessed
},
{
    path: '/assessedAll',
    name: 'assessedAll',
    component: assessedAll
},
{
    path: '/checkAssessed',
    name: 'checkAssessed',
    component: checkAssessed
},
{
    path: '/personexam',
    name: 'personexam',
    component: personexam
},
{
    path: '/situationexam',
    name: 'situationexam',
    component: situationexam
},
{
    path: '/keyexam',
    name: 'keyexam',
    component: keyexam
},
{
    path: '/powerexam',
    name: 'powerexam',
    component: powerexam
},
{
    path: '/details',
    name: 'details',
    component: details
},
{
    path: '/onlineAssess',
    name: 'onlineAssess',
    component: onlineAssess
},
{
    path: '/underlineAssess',
    name: 'underlineAssess',
    component: underlineAssess
},
{
    path: '/underlineAssess2',
    name: 'underlineAssess2',
    component: underlineAssess2
}
    ,
{
    path: '/onlineAssess2',
    name: 'onlineAssess2',
    component: onlineAssess2
}
    /*
    ,
    {
        path: '/ideaAll',
        name: 'ideaAll',
        component: ideaAll
    } */
    ,
{
    path: '/assessedAlls',
    name: 'assessedAlls',
    component: assessedAlls
},
{
    path: '/templete',
    name: 'templete',
    component: templete
},
{
    path: '/changepsd2',
    name: 'changepsd2',
    component: changepsd2
},
{
    path: '/uploadSign',
    name: 'uploadSign',
    component: uploadSign
},
{
    path: '/estimate',
    name: 'estimate',
    component: estimate
},
{
    path: '/waitAssess2',
    name: 'waitAssess2',
    component: waitAssess2
},
{
    path: '/comAssess2',
    name: 'comAssess2',
    component: comAssess2
},

{
    path: '/checkAssessed2',
    name: 'checkAssessed2',
    component: checkAssessed2
},
{
    path: '/assessed2',
    name: 'assessed2',
    component: assessed2
},
{
    path: '/tableLay',
    name: 'tableLay',
    component: tableLay,
    redirect: '/tableLay/situationexam2',
    children: [
        {
            path: 'situationexam2',
            name: 'situationexam2',
            component: situationexam2
        }, {
            path: 'keyexam2',
            name: 'keyexam2',
            component: keyexam2
        }, {
            path: 'powerexam2',
            name: 'powerexam2',
            component: powerexam2
        },
        {
            path: 'personexam2',
            name: 'personexam2',
            component: personexam2
        },
    ]
},
{
    path: '/assessedAll2',
    name: 'assessedAll2',
    component: assessedAll2
}, {
    path: '/assessedAlls2',
    name: 'assessedAlls2',
    component: assessedAlls2
},
{
    path: '/basic2',
    name: 'basic2',
    component: basic2
},
{
    path: '/risk2',
    name: 'risk2',
    component: risk2
},
{
    path: '/resources2',
    name: 'resources2',
    component: resources2
},
{
    path: '/estimate2',
    name: 'estimate2',
    component: estimate2
},
{
    path: '/planmanage2',
    name: 'planmanage2',
    component: planmanage2
},
  {
    path: '/planList',
    name: 'planList',
    component: planList
  },
{
    path: '/list',
    name: 'list',
    component: list
},
{
    path: '/listDetail',
    name: 'listDetail',
    component: listDetail
},
{
    path: '/filingApplication1',
    name: 'filingApplication1',
    component: filingApplication1
},
{
    path: '/filingApplication2',
    name: 'filingApplication2',
    component: filingApplication2
},
{
    path: '/publicRecord',
    name: 'publicRecord',
    component: publicRecord
},
{
    path: '/publicCheck',
    name: 'publicCheck',
    component: publicCheck
},
{
    path: '/drillGuide',
    name: 'drillGuide',
    component: drillGuide
},
  {
    path: '/drillGuide1',
    name: 'drillGuide1',
    component: drillGuide1
  },
  {
    path: '/drillManagement',
    name: 'drillManagement',
    component: drillManagement
  },
{

    path: '/monitor',
    name: 'monitor',
    component: monitor
},
  {
    path: '/experience',
    name: 'experience',
    component: experience
  },
  {
    path: '/knowledge',
    name: 'knowledge',
    component: knowledge
  },
  {
    path: '/discussion',
    name: 'discussion',
    component: discussion
  },
  {
    path: '/list1',
    name: 'list1',
    component: list1
  },
  {
    path: '/list2',
    name: 'list2',
    component: list2
  },
  {
    path: '/regulations',
    name: 'regulations',
    component: regulations
  },
  {
    path: '/regulations1',
    name: 'regulations1',
    component: regulations1
  },
  {
    path: '/thinktanks',
    name: 'thinktanks',
    component: thinktanks
  },
  {
    path: '/newsDetail',
    name: 'newsDetail',
    component: newsDetail
  },
  {
    path: '/newsDetail1',
    name: 'newsDetail1',
    component: newsDetail1
  },
  {
    path: '/newsDetail2',
    name: 'newsDetail2',
    component: newsDetail2
  },
  {
    path: '/noticInfo',
    name: 'noticInfo',
    component: noticInfo
  }
]
// export default new Router({
export default new Router({
    scrollBehavior: () => ({
        y: 0
    }),
    routes: [...StaticRouterMap, ...CompanyRouterMap]
})
